
package com.gack.business.model;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.gack.helper.common.abstractobj.IdEntity;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "user")
public class User extends IdEntity{
	
	private String username; //用户名
	private String password; //密码
	private String nickname; //昵称
	private String portrait; //头像地址
	@Temporal(TemporalType.TIMESTAMP)
	private Date createtime; //注册时间
	@Temporal(TemporalType.TIMESTAMP)
	private Date lastLoginTime; //上次登录时间
	private String registerSource; //注册来源  android或ios
	private boolean is_check; //是否认证
	private boolean is_pledge; //是否交纳押金
	private String realName;//真实姓名
	@Temporal(TemporalType.TIMESTAMP)
	private Date check_time; //认证时间
	private boolean status; //账号状态  
	private Integer createOfficeNum; //创建共享办公次数
	private Integer createMeetingNum; //创建视频会议次数
	private Integer joinVideoNum; //参加视频会议次数
	private Long totalJoinMeetingTime; //参加视频会议总时长(秒为单位)
	private Long totalOfficeTime; //参加共享办公总时长(秒为单位)
	private Integer useramount; //账号余额(分)
	private Integer expenseAmount; //累计消费金额(分)
	private Integer expenseNum; //累计消费次数
	private Integer loginNum; //登录次数
}
